#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20230223.sql ./mysql/db
cp ../sql/ry_config_20220929.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../testplatfrom-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy testplatfrom-gateway "
cp ../testplatfrom-gateway/target/testplatfrom-gateway.jar ./testplatfrom/gateway/jar

echo "begin copy testplatfrom-auth "
cp ../testplatfrom-auth/target/testplatfrom-auth.jar ./testplatfrom/auth/jar

echo "begin copy testplatfrom-visual "
cp ../testplatfrom-visual/testplatfrom-monitor/target/testplatfrom-visual-monitor.jar  ./testplatfrom/visual/monitor/jar

echo "begin copy testplatfrom-modules-system "
cp ../testplatfrom-modules/testplatfrom-system/target/testplatfrom-modules-system.jar ./testplatfrom/modules/system/jar

echo "begin copy testplatfrom-modules-file "
cp ../testplatfrom-modules/testplatfrom-file/target/testplatfrom-modules-file.jar ./testplatfrom/modules/file/jar

echo "begin copy testplatfrom-modules-job "
cp ../testplatfrom-modules/testplatfrom-job/target/testplatfrom-modules-job.jar ./testplatfrom/modules/job/jar

echo "begin copy testplatfrom-modules-gen "
cp ../testplatfrom-modules/testplatfrom-gen/target/testplatfrom-modules-gen.jar ./testplatfrom/modules/gen/jar

